home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: View offsets when embeded
- Sent: 7/16/96 7:20 AM
- Received: 7/16/96 8:41 AM
- From: Scott Daniels, scottdfl@sprynet.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- Hi Henri,
-
- I tried embedding in a non-ODF container like you asked, and the problem
- goes away, so it appears to be a problem only when embedding in an ODF
- container. For another clue, (my part is based on ODF Draw and so uses the
- ruler from it) when I turn the rulers on, my selection is offset even
- further from the bitmap rendering by the amount of the rulers. Again,
- everything works just fine when embedded in the Draw progam that comes
- with OpenDoc itself and when not embedded. Is this an ODF bug then? Or is
- there something I am not doing correctly?
-
- A second embedding problem I have is when I embed in either draw program
- (ODF & non-ODF) my content is clipped to show only the upper left corner.
- This only happens if I 1) drag my stationary into the container & 2)
- import my data. If I save after step (1) and then reopen before importing,
- my drawing is no longer clipped. Also, if I embed in say "Panel" part, it
- works fine (no clipping). Any ideas for this one?
-
- Thanks,
- Scott
-
- ----------
- > From: Henri Lamiraux <lamiraux@apple.com>
- > To: OpenDoc Development Framework Discussion List
- <ODF-Interest@CILabs.ORG>
- > Subject: Re: View offsets when embeded
- > Date: Friday, July 12, 1996 4:56 PM
- >
- > >Hi ODF team,
- > >
- > >My part uses an offscreen bitmap to draw the content into, which is
- then
- > >blasted back to the main view of my frame. When I edit the objects in
- that
- > >view however I do it directly in the view, so the view and the
- offscreen
- > >bitmap must be perfectly registered. I have accomplished this feat when
- I
- > >launch my part directly. However, when I embed my part into ODF draw
- and
- > >try to edit an object it appears 2-3 pixels off in both x & y
- directions.
- > >This also appears to be the width of the dbl-line border around my
- frame.
- > >Obviously, the view offsets are different when embeded vs. not embeded.
- > >
- > >Would you please enlighten me on the differences in transforms, etc.
- for
- > >these two cases, and where I might be in error in my code?
- > >
- > >Thanks in advance,
- > >Scott
- > >--
- > >Scott Daniels scottdfl@sprynet.com
- > >"Life appears the way you choose to see it."
- >
- > Does it happen only with ODF based containers?. Do you get the same
- > result with for example the PanelEditor part?
- >
- > ........................................................................
- > Henri Lamiraux lamiraux@apple.com
- > Apple Computer, Inc. OpenDoc(tm) Development Framework
- > ........................................................................
-